package com.ossjk.oa.finance.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 报销子项
 * </p>
 *
 * @author chair
 * @since 2019-02-08
 */
public class Subreimburse extends BaseEntity<Subreimburse> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 报销id
     */
    @TableField("rid")
    private String rid;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 金额
     */
    @TableField("amount")
    private BigDecimal amount;
    /**
     * 是否有发票：1-有、2-没有
     */
    @TableField("isreceipt")
    private BigDecimal isreceipt;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getIsreceipt() {
        return isreceipt;
    }

    public void setIsreceipt(BigDecimal isreceipt) {
        this.isreceipt = isreceipt;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Subreimburse{" +
        ", id=" + id +
        ", rid=" + rid +
        ", name=" + name +
        ", amount=" + amount +
        ", isreceipt=" + isreceipt +
        ", remarks=" + remarks +
        "}";
    }
}
